//
//  MenuView.m
//  TwitterPlane
//
//  Created by kazuyuki takahashi on 10/02/09.
//  Copyright 2010 by invisibledesigner.com. All rights reserved.
//

#import "MenuView.h"


@implementation MenuView

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setAlphaValue:0];
    }
    return self;
}

- (void)drawRect:(NSRect)dirtyRect 
{
    const CGFloat kCorner = 6;
    
    NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self bounds]
                                                         xRadius:kCorner
                                                         yRadius:kCorner];
    [[NSColor colorWithDeviceWhite:0.7 alpha:0.4] set];
    [path fill];
}

- (void)fadein
{
    [[self animator] setAlphaValue:1.0];
}

- (void)fadeout
{
    [[self animator] setAlphaValue:0.0];
}

@end
